export default {
    getErrorMsg: (type) => {
        let X1HybridG3 = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            4: 'PvVoltFault',
            5: 'BusVoltFault',
            6: 'Bat Volt Fault',
            7: 'Ac10Mins_Voltage_Fault',
            8: 'Dci_OCP_Fault',
            9: 'Dcv_OVP_Fault',
            10: 'SW_OCP_Fault',
            11: 'RC_OCP_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            14: 'BatConDir_Fault',
            15: 'SampleConsistenceFault',
            16: 'EpsOverLoad Fault',
            17: 'Over Load Fault',
            18: 'InputConfigFault',
            19: 'EPSBatPowerLow',
            20: 'Hybrid_IRelayFault',
            21: 'SoftVerFault',
            23: 'BMS_Lost',
            24: 'Inter_Com_Fault',
            25: 'Fan Fault',
            26: 'HCT_AC_DeviceFault',
            27: 'EepromFault',
            28: 'ResidualCurrent_DeviceFault',
            29: 'EpsRelayFault',
            30: 'GridRelayFault',
            31: 'Other_DeviceFault',
            100: 'Ethernet_Error',
            101: 'RtcError',
            102: 'E2promError',
            103: 'DSPVerFault',
            104: 'NTC Sample Invilad',
            105: 'BatTempLow',
            106: 'BatTempHigh',
            108: 'InterCommsError',
            109: 'CT_Error',
            115: 'RemoteOFF',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let X1BoostAirMini = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            4: 'PLLLostFault',
            5: 'BusVoltFault',
            7: 'SW_OCP_Fault',
            8: 'Dci_OCP_Fault',
            9: 'ResidualCurrentFault',
            10: 'PvVoltFault',
            11: 'Ac10Mins_Voltage_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            16: 'SpiCommsFault',
            17: 'SciCommsFault',
            19: 'InputConfigFault',
            20: 'EepromFault',
            21: 'RelayFault',
            22: 'SampleConsistenceFault',
            23: 'ResidualCurrent_DeviceFault',
            29: 'DCI_DeviceFault',
            30: 'Other_DeviceFault',
            102: 'E2promError',
            103: 'ArmDspCommsError',
            104: 'Meter_Error',
            105: 'NFI_Error'
        };
        let X3HybridG1 = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            4: 'PvVoltFault',
            5: 'BusVoltFault',
            6: 'Bat Volt Fault',
            7: 'Ac10Mins_Voltage_Fault',
            8: 'Dci_OCP_Fault',
            9: 'Dcv_OVP_Fault',
            10: 'SW_OCP_Fault',
            11: 'RC_OCP_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            14: 'BMS_Lost',
            15: 'SampleConsistenceFault',
            16: 'EpsOverLoad',
            17: 'Eps_OCP',
            18: 'InputConfigFault',
            18: 'FirmwareVerFault',
            20: 'EPSBatPowerLow',
            21: 'PhaseAngleFault',
            22: 'PLL_OverTime',
            23: 'ParallelFault',
            24: 'Inter_Com_Fault',
            25: 'Fan Fault',
            26: 'HCT_AC_DeviceFault',
            27: 'EepromFault',
            28: 'ResidualCurrent_DeviceFault',
            29: 'EpsRelayFault',
            30: 'GridRelayFault',
            31: 'BatRelayFault',
            100: 'Ethernet_Error',
            101: 'RtcError',
            102: 'E2promError',
            103: 'DSPVerFault',
            104: 'NTC Sample Invilad',
            105: 'BatTempLow',
            106: 'BatTempHigh',
            108: 'InterCommsError',
            109: 'CT_Error',
            115: 'RemoteOFF',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage,',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let X320K30K = {
            0: 'ControlLoopERR',
            1: 'PhaseDeltaFault',
            2: 'Auto_Test_Fault',
            3: 'UnRecover_LN_Fault',
            4: 'SW_FANIIIFault',
            5: 'SW_FANIIFault',
            6: 'SW_FANIFault',
            7: 'SW_IACRMS_Unblance',
            8: 'SW_OverTemp',
            9: 'SW_OCP_ACRMS',
            10: 'SW_BUS_Unblance',
            11: 'SW_OCP_GFCI_300mA',
            12: 'SW_OCP_GFCI_JumpIII',
            13: 'SW_OCP_GFCI_JumpII',
            14: 'SW_OCP_GFCI_JumpI',
            15: 'SW_OCP_GFCI',
            16: 'SW_OCP_DCI',
            17: 'RelayOpenFault',
            18: 'RelayShortFault',
            19: 'IsoIIFault',
            20: 'IsoIFault',
            21: 'SW_UFP_ACT',
            22: 'SW_OFP_ACT',
            23: 'SW_UFP_ACS',
            24: 'SW_OFP_ACS',
            25: 'SW_UFP_ACR',
            26: 'SW_OFP_ACR',
            27: 'SW_UFP_AC',
            28: 'SW_OFP_AC',
            29: 'SW_OVP_Boost',
            30: 'SW_OVP_BoostII',
            31: 'SW_OVP_BoostI',
            32: 'SW_OVP_BUS',
            33: 'SW_UVP_ACT',
            34: 'SW_UVP_ACS',
            35: 'SW_UVP_ACR',
            36: 'SW_OVP_ACT',
            37: 'SW_OVP_ACS',
            38: 'SW_OVP_ACR',
            39: 'SW_UVP_AC',
            40: 'SW_OVP_AC',
            41: 'Grid_Lost_Fault',
            42: 'PLLFault',
            43: 'SW_OCP_BoostII',
            44: 'SW_OCP_BoostI',
            45: 'SW_OCP_ACT',
            46: 'SW_OCP_ACS',
            47: 'SW_OCP_ACR',
            48: 'GFCI_Device_Fault',
            49: 'EEPROM_WR_Fault',
            50: 'UnRecover_FANXFault',
            51: 'Current_Sensor_Fault',
            52: 'UnRecover_RelayFault',
            53: 'SampleConsistentFault',
            54: 'PvConfigSet_Wrong',
            55: 'HW_OCP_BoostII',
            56: 'HW_OCP_BoostI',
            57: 'HW_OVP_BUS',
            58: 'HW_OCP_ACT',
            59: 'HW_OCP_ACS',
            60: 'HW_OCP_ACR',
            61: 'LcdCommsErr',
            62: 'SciERR',
            63: 'SpiERR',
            102: 'E2promError',
            103: 'ArmDspCommsError',
            104: 'Meter_Error'
        };
        let X3Mic = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            4: 'PLLLostFault',
            5: 'BusVoltFault',
            7: 'SW_OCP_Fault',
            8: 'Dci_OCP_Fault',
            9: 'ResidualCurrentFault',
            10: 'PvVoltFault',
            11: 'Ac10Mins_Voltage_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            14: 'FanFault',
            16: 'SpiCommsFault',
            17: 'SciCommsFault',
            19: 'InputConfigFault',
            20: 'EepromFault',
            21: 'RelayFault',
            22: 'SampleConsistenceFault',
            23: 'ResidualCurrent_DeviceFault',
            29: 'DCI_DeviceFault',
            30: 'Other_DeviceFault',
            102: 'E2promError',
            103: 'ArmDspCommsError',
            104: 'Meter_Error'
        };
        let X1BoostPro = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            4: 'PLLLostFault',
            5: 'BusVoltFault',
            7: 'SW_OCP_Fault',
            8: 'Dci_OCP_Fault',
            9: 'ResidualCurrentFault',
            10: 'PvVoltFault',
            11: 'Ac10Mins_Voltage_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            16: 'SpiCommsFault',
            17: 'SciCommsFault',
            19: 'InputConfigFault',
            20: 'EepromFault',
            21: 'RelayFault',
            22: 'SampleConsistenceFault',
            23: 'ResidualCurrent_DeviceFault',
            29: 'DCI_DeviceFault',
            30: 'Other_DeviceFault',
            102: 'E2promError',
            103: 'ArmDspCommsError',
            105: 'NFI_Error'
        };
        let X1AC = {
            0: 'TzProtectFault',
            1: 'MainsLostFault',
            2: 'GridVoltFault',
            3: 'GridFreqFault',
            5: 'BusVoltFault',
            6: 'Bat Volt Fault',
            7: 'Ac10Mins_Voltage_Fault',
            8: 'Dci_OCP_Fault',
            9: 'Dcv_OVP_Fault',
            10: 'SW_OCP_Fault',
            11: 'RC_OCP_Fault',
            12: 'IsolationFault',
            13: 'TemperatureOverFault',
            14: 'BatConDir_Fault',
            15: 'SampleConsistenceFault',
            17: 'Over Load Fault',
            20: 'Hybrid_IRelayFault',
            21: 'SoftVerFault',
            23: 'BMS_Lost',
            24: 'Inter_Com_Fault',
            25: 'Fan Fault',
            26: 'HCT_AC_DeviceFault',
            27: 'EepromFault',
            28: 'ResidualCurrent_DeviceFault',
            30: 'GridRelayFault',
            31: 'Other_DeviceFault',
            101: 'RtcError',
            102: 'E2promError',
            103: 'DSPVerFault',
            104: 'NTC Sample Invilad',
            105: 'BatTempLow',
            106: 'BatTempHigh',
            108: 'InterCommsError',
            109: 'Meter_Fault',
            115: 'RemoteOFF',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let HybridA1 = {
            0: 'TZ Protect Fault',
            1: 'Grid Lost Fault',
            4: 'Soft Ver Fault',
            5: 'Gen Volt Fault',
            6: 'Gen Freq Fault',
            7: 'Under Temp Fault',
            8: 'GridUnderVoltFault',
            9: 'GridOverVoltFault',
            10: 'GridUnderFreqFault',
            11: 'GridOverFreqFault',
            12: 'PV Volt Fault',
            13: 'Bus Volt Fault',
            14: 'Bat Volt Fault',
            15: 'Ac10MinsVoltFault',
            16: 'DCI OCP Fault',
            17: 'DCV OVP Fault',
            18: 'SW OCP Fault',
            19: 'RC OCP Fault',
            20: 'Isolation Fault',
            21: 'Over Temp Fault',
            22: 'BatConDir Fault',
            23: 'Sample Fault',
            24: 'EPS OverLoad Fault',
            25: 'OverLoad Fault',
            26: 'Input Cnf Fault',
            27: 'EPS Bat Power Low',
            28: 'Gen_Over Load',
            29: 'Arc Detect Fault',
            30: 'RapidShutDownFault',
            31: 'BMS Lost',
            32: 'Inter Com Fault',
            33: 'Fan Fault',
            34: 'AC HCT Fault',
            35: 'Inv EEPROM Fault',
            36: 'RCD Fault',
            37: 'EPS Relay Fault',
            38: 'Grid Relay Fault',
            39: 'OtherDeviceFault',
            40: 'Paral Line Fault',
            41: 'Bat Relay Fault',
            42: 'Gen Relay Fault',
            43: 'AFDSelfCheckFault',
            100: 'Ethernet_Error',
            101: 'RtcError',
            102: 'Mgr EEPROM Fault',
            103: 'DSPVerFault',
            108: 'Mgr InterCom Fault',
            109: 'Meter Fault',
            111: 'Slave Update Fault',
            115: 'RemoteOFF',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break',
            200: 'ATS_InvCommFlt',
            201: 'ATS_EPO',
            202: 'ATS_ManualOverride',
            203: 'ATS_GridRlyFlt',
            204: 'ATS_PrllRlyFlt',
            205: 'ATS_AutoTxRlyFlt',
            206: 'ATS_Permenent closed',
            207: 'ATS_Permenent open',
            208: 'ATS_AmbTempHigh',
            209: 'ATS_AmbTempLow',
            210: 'ATS_OverTempFlt',
            211: 'ATS_PhsImblHigh',
            212: 'ATS_EEpromFlt',
            213: 'ATS_IntMeterFlt',
            214: 'ATS_GenOverLoad',
            215: 'ATS_GenRlyFlt',
            216: 'ATS_InvEngyLow',
            217: 'ATS_GridLost',
            218: 'ATS_GridVolHigh',
            219: 'ATS_GridVolLow',
            220: 'ATS_GridFreHigh',
            221: 'ATS_GridFreLow',
            222: 'ATS_GenLost',
            223: 'ATS_GenVolHigh',
            224: 'ATS_GenVolLow',
            225: 'ATS_GenFreHigh',
            226: 'ATS_GenFreLow'
        };
        let J1ESSHB = {
            0: 'TZ Protect Fault',
            1: 'Grid Lost Fault',
            2: 'Grid Volt Fault',
            3: 'Grid Freq Fault',
            4: 'PV Volt Fault',
            5: 'Bus Volt Fault',
            6: 'Bat Volt Fault',
            7: 'ActIsland Fault',
            8: 'DCI OCP Fault',
            9: 'DCV OVP Fault',
            10: 'SW OCP Fault',
            11: 'RC OCP Fault',
            12: 'Isolation Fault',
            13: 'Temp Over Fault',
            14: 'BatConDir Fault',
            15: 'EPS OverLoad Fault',
            16: 'OverLoad Fault',
            17: 'BatPowerLow',
            18: 'BMS Lost',
            19: 'Fan Fault',
            20: 'Low Temp Fault',
            21: 'PassIsland Fault',
            22: 'RPR Fault',
            23: 'CTConnectionFault',
            24: 'Inter Com Fault',
            25: 'Inv EEPROM Fault',
            26: 'RCD Fault',
            27: 'Grid Relay Fault',
            28: 'EPS Relay Fault',
            29: 'PVConnDirFault',
            30: 'Charger Relay Fault',
            31: 'EarthRelayFault',
            102: 'E2promError',
            103: 'DSPVerFault',
            104: 'NTC Sample Invilad',
            105: 'BatTempLow',
            106: 'BatTempHigh',
            109: 'CT_Error',
            105: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let X3HybridG4 = {
            0: 'Tz Protect Fault',
            1: 'Grid Lost Fault',
            2: 'Grid Voltage Fault',
            3: 'Grid Frequency Fault',
            4: 'PV Voltage Fault',
            5: 'Bus Voltage Fault',
            6: 'Bat Voltage Fault',
            7: 'Ac10mins Volt Fault',
            8: 'DCI OCP Fault',
            9: 'DCV OVP Fault',
            10: 'SW OCP Fault',
            11: 'RC OCP Fault',
            12: 'IsolationFault',
            13: 'Temperature Over Fault',
            14: 'Bat ConntDir Fault',
            15: 'Off-grid Overload Fault',
            16: 'OverLoad Fault',
            17: 'Bat Power Low',
            18: 'BMS Lost',
            19: 'Fan Fault',
            20: 'Low Temp Fault',
            23: 'InvVoltSampleFault',
            24: 'Inter_Com_Fault',
            25: 'INV Eeprom Fault',
            26: 'RCD Fault',
            27: 'Grid Relay Fault',
            28: 'EPS Relay Fault',
            29: 'PvConnDirFault',
            30: 'Battery Relay Fault',
            31: 'Earth Relay Fault',
            100: 'Power Type Fault',
            101: 'Port OC Warning',
            102: 'Mgr E2prom Error',
            104: 'NTC Sample Invilad',
            105: 'Bat Temp Low',
            106: 'Bat Temp High',
            109: 'Meter Fault',
            110: 'Bypass Relay Fault',
            111: 'Fan2 Fault',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let X1HybridG4 = {
            0: 'Tz Protect Fault',
            1: 'Grid Lost Fault',
            2: 'Grid Voltage Fault',
            3: 'Grid Frequency Fault',
            4: 'PV Voltage Fault',
            5: 'Bus Voltage Fault',
            6: 'Bat Voltage Fault',
            7: 'Ac10mins Volt Fault',
            8: 'DCI OCP Fault',
            9: 'DCV OVP Fault',
            10: 'SW OCP Fault',
            11: 'RC OCP Fault',
            12: 'Isolation Fault',
            13: 'Temperature Over Fault',
            14: 'Bat ConntDir Fault',
            15: 'Miss CT Fault',
            16: 'Off-grid Overload Fault',
            17: 'Overload Fault',
            18: 'PV ConnDirFault',
            19: 'Bat Power Low',
            20: 'Low Temp Fault',
            22: 'Battery Relay Fault',
            23: 'BMS Lost',
            25: 'Fan Fault',
            26: 'Earth Relay Fault',
            27: 'INV Eeprom Fault',
            28: 'RCD Fault',
            29: 'Off-grid Relay Fault',
            30: 'Grid Relay Fault',
            31: 'Other Device Fault',
            100: 'Power Type Fault',
            101: 'Port OC Warning',
            102: 'Mgr E2prom Error',
            104: 'NTC Sample Invilad',
            105: 'Bat Temp Low',
            106: 'Bat Temp High',
            109: 'Meter Fault',
            110: 'Bypass Relay Fault',
            111: 'Fan2 Fault',
            150: 'BMS_External_Err',
            151: 'BMS_Internal_Err',
            152: 'BMS_OverVoltage',
            153: 'BMS_LowerVoltage',
            154: 'BMS_ChargeOverCurrent',
            155: 'BMS_DischargeOverCurrent',
            156: 'BMS_TemHigh',
            157: 'BMS_TemLow',
            158: 'BMS_CellImbalance',
            159: 'BMS_Hardware_Protect',
            160: 'BMS_Circuit_Fault',
            161: 'BMS_Insulation_Fault',
            162: 'BMS_VoltSensor_Fault',
            163: 'BMS_TempSensor_Fault',
            164: 'BMS_CurrSensor_Fault',
            165: 'BMS_Relay_Fault',
            166: 'BMS_Type_Unmatch',
            167: 'BMS_Version_Unmatch',
            168: 'BMS_Manufacturer_Unmatch',
            169: 'BMS_SW&HW_Unmatch',
            170: 'BMS_ M&S_Unmatch',
            171: 'BMS_CR_Unresponsive',
            172: 'BMS_Software_Protect',
            173: 'BMS_536_Fault',
            174: 'BMS_ Selfchecking_Fault',
            175: 'BMS_Tempdiff_Fault',
            176: 'BMS_Break',
            177: 'BMS_Flash_Fault',
            178: 'BMS_Precharge_Fault',
            179: 'BMS_AirSwitch_Break'
        };
        let X3MicG2 = {
            0: 'Tz Protect Fault',
            1: 'Grid Lost Fault',
            2: 'Grid Voltage Fault',
            3: 'Grid Frequency Fault',
            4: 'PV Voltage Fault',
            5: 'Bus Voltage Fault',
            7: 'Ac10mins Volt Fault',
            8: 'DCI OCP Fault',
            10: 'SW OCP Fault',
            11: 'RC OCP Fault',
            12: 'Isolation Fault',
            13: 'Temperature Over Fault',
            20: 'Low Temp Fault',
            24: 'InternalCommsFault',
            25: 'Fan Fault',
            26: 'Earth Relay Fault',
            27: 'INV Eeprom Fault',
            28: 'RCD Fault',
            29: 'PV ConnDirFault',
            30: 'Grid Relay Fault',
            31: 'Other Device Fault',
            102: 'Mgr E2prom Error',
            104: 'Meter Error',
            113: 'Fan1 & Fan2 Fault',
            114: 'Fan1 Fault',
            115: 'Fan2 Fault'
        };
        if (type == 3) {
            return X1HybridG3;
        } else if (type == 4) {
            return X1BoostAirMini;
        } else if (type == 5) {
            return X3HybridG1;
        } else if (type == 6) {
            return X320K30K;
        } else if (type == 7) {
            return X3Mic;
        } else if (type == 8) {
            return X1BoostPro;
        } else if (type == 9) {
            return X1AC;
        } else if (type == 10 || type == 11 || type == 12) {
            return HybridA1;
        } else if (type == 13) {
            return J1ESSHB;
        } else if (type == 14) {
            return X3HybridG4;
        } else if (type == 15) {
            return X1HybridG4;
        } else if (type == 16) {
            return X3MicG2;
        }
    }
}